package com.mybd.req.three;

import org.apache.hadoop.io.WritableComparator;

/**
 * @author: Scq
 * @time: 2021/6/511:21
 */
public class MyGrouping extends WritableComparator {
    public MyGrouping() {
        super(EmployeeInformation.class, true);
    }

    @Override
    public int compare(Object a, Object b) {
        EmployeeInformation a1 = (EmployeeInformation) a;
        EmployeeInformation b1 = (EmployeeInformation) b;
        return a1.getWage().compareTo(b1.getWage());
    }
}
